#! /bin/sh
source /etc/profile
source /root/.bash_profile
workdir=$(cd $(dirname $0); pwd)
jarname=tomp-1.0-SNAPSHOT.jar
echo "${jarname} start..."

ps -fe|grep ${jarname} |grep -v grep
if [ $? -ne 0 ]
then
echo "start ${jarname} process....."
cd $workdir
java -jar  ${jarname} >> ./logs/start.log 2>&1 &
else
echo "${jarname} runing....."
fi
